<%@ tag language="java" pageEncoding="UTF-8" body-content="empty" trimDirectiveWhitespaces="true"%>
<%@ attribute name="id" type="java.lang.String" required="true" description="id" %>
<%@ attribute name="nameEditor" type="java.lang.String" required="true" description="markdown editor文本内容textarea的name属性" %>
<%@ attribute name="nameHtml" type="java.lang.String" required="true" description="markdown editor的html内容textarea的name属性" %>
<%@ attribute name="width" type="java.lang.String" required="false" description="宽度" %>
<%@ attribute name="height" type="java.lang.String" required="false" description="高度" %>
<%@ attribute name="emoji" type="java.lang.Boolean" required="false" description="设置是否允许插入表情" %>

<div id="${id }">
    <textarea style="display:none;" class='editormd-markdown-textarea' name="${nameEditor }"></textarea>
    <textarea style="display:none;" class='editormd-html-textarea' name="${nameHtml }"></textarea>
</div>

<script type="text/javascript">
(function(){
	window.TagSupport.mdeditor({
		'id':'${id}', 'width':"${width}", 'height':"${height}", 'emoji':"${emoji}"
	});
})();

</script>